import { ServiceProto } from 'tsrpc-proto';
import { ReqAddData, ResAddData } from './pandian/PtlAddData';
import { ReqDelData, ResDelData } from './pandian/PtlDelData';
import { ReqGetAddress, ResGetAddress } from './pandian/PtlGetAddress';
import { ReqGetData, ResGetData } from './pandian/PtlGetData';
import { ReqGetDataByTime, ResGetDataByTime } from './pandian/PtlGetDataByTime';
import { ReqAddData as ReqAddData_1, ResAddData as ResAddData_1 } from './PtlAddData';
import { ReqDelData as ReqDelData_1, ResDelData as ResDelData_1 } from './PtlDelData';
import { ReqGetData as ReqGetData_1, ResGetData as ResGetData_1 } from './PtlGetData';
import { ReqGetOneData, ResGetOneData } from './PtlGetOneData';

export interface ServiceType {
    api: {
        "pandian/AddData": {
            req: ReqAddData,
            res: ResAddData
        },
        "pandian/DelData": {
            req: ReqDelData,
            res: ResDelData
        },
        "pandian/GetAddress": {
            req: ReqGetAddress,
            res: ResGetAddress
        },
        "pandian/GetData": {
            req: ReqGetData,
            res: ResGetData
        },
        "pandian/GetDataByTime": {
            req: ReqGetDataByTime,
            res: ResGetDataByTime
        },
        "AddData": {
            req: ReqAddData_1,
            res: ResAddData_1
        },
        "DelData": {
            req: ReqDelData_1,
            res: ResDelData_1
        },
        "GetData": {
            req: ReqGetData_1,
            res: ResGetData_1
        },
        "GetOneData": {
            req: ReqGetOneData,
            res: ResGetOneData
        }
    },
    msg: {

    }
}

export const serviceProto: ServiceProto<ServiceType> = {
    "version": 14,
    "services": [
        {
            "id": 2,
            "name": "pandian/AddData",
            "type": "api"
        },
        {
            "id": 3,
            "name": "pandian/DelData",
            "type": "api"
        },
        {
            "id": 7,
            "name": "pandian/GetAddress",
            "type": "api"
        },
        {
            "id": 4,
            "name": "pandian/GetData",
            "type": "api"
        },
        {
            "id": 8,
            "name": "pandian/GetDataByTime",
            "type": "api"
        },
        {
            "id": 0,
            "name": "AddData",
            "type": "api"
        },
        {
            "id": 5,
            "name": "DelData",
            "type": "api"
        },
        {
            "id": 1,
            "name": "GetData",
            "type": "api"
        },
        {
            "id": 6,
            "name": "GetOneData",
            "type": "api"
        }
    ],
    "types": {
        "pandian/PtlAddData/ReqAddData": {
            "type": "Interface",
            "properties": [
                {
                    "id": 2,
                    "name": "SerialNum",
                    "type": {
                        "type": "String"
                    }
                },
                {
                    "id": 3,
                    "name": "User",
                    "type": {
                        "type": "String"
                    }
                },
                {
                    "id": 4,
                    "name": "AbnormalInfo",
                    "type": {
                        "type": "String"
                    },
                    "optional": true
                },
                {
                    "id": 1,
                    "name": "Location",
                    "type": {
                        "type": "String"
                    }
                }
            ]
        },
        "pandian/PtlAddData/ResAddData": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "insertedId",
                    "type": {
                        "type": "String"
                    }
                }
            ]
        },
        "pandian/PtlDelData/ReqDelData": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "_id",
                    "type": {
                        "type": "Reference",
                        "target": "?mongodb/ObjectId"
                    }
                }
            ]
        },
        "pandian/PtlDelData/ResDelData": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "_id",
                    "type": {
                        "type": "String"
                    }
                }
            ]
        },
        "pandian/PtlGetAddress/ReqGetAddress": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "SerialNum",
                    "type": {
                        "type": "String"
                    }
                }
            ]
        },
        "pandian/PtlGetAddress/ResGetAddress": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "Location",
                    "type": {
                        "type": "String"
                    }
                }
            ]
        },
        "pandian/PtlGetData/ReqGetData": {
            "type": "Interface"
        },
        "pandian/PtlGetData/ResGetData": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "data",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Interface",
                            "properties": [
                                {
                                    "id": 0,
                                    "name": "_id",
                                    "type": {
                                        "type": "String"
                                    }
                                },
                                {
                                    "id": 3,
                                    "name": "SerialNum",
                                    "type": {
                                        "type": "String"
                                    }
                                },
                                {
                                    "id": 6,
                                    "name": "AbnormalInfo",
                                    "type": {
                                        "type": "String"
                                    },
                                    "optional": true
                                },
                                {
                                    "id": 8,
                                    "name": "AssetNum",
                                    "type": {
                                        "type": "String"
                                    }
                                },
                                {
                                    "id": 9,
                                    "name": "EquipmentName",
                                    "type": {
                                        "type": "String"
                                    }
                                },
                                {
                                    "id": 10,
                                    "name": "EquipmentModel",
                                    "type": {
                                        "type": "String"
                                    }
                                },
                                {
                                    "id": 7,
                                    "name": "User",
                                    "type": {
                                        "type": "String"
                                    }
                                },
                                {
                                    "id": 4,
                                    "name": "Location",
                                    "type": {
                                        "type": "String"
                                    }
                                },
                                {
                                    "id": 5,
                                    "name": "time",
                                    "type": {
                                        "type": "Date"
                                    }
                                }
                            ]
                        }
                    }
                }
            ]
        },
        "pandian/PtlGetDataByTime/ReqGetDataByTime": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "time",
                    "type": {
                        "type": "Interface",
                        "properties": [
                            {
                                "id": 0,
                                "name": "startTime",
                                "type": {
                                    "type": "String"
                                }
                            },
                            {
                                "id": 1,
                                "name": "endTime",
                                "type": {
                                    "type": "String"
                                }
                            }
                        ]
                    }
                }
            ]
        },
        "pandian/PtlGetDataByTime/ResGetDataByTime": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "data",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Interface",
                            "properties": [
                                {
                                    "id": 0,
                                    "name": "_id",
                                    "type": {
                                        "type": "String"
                                    }
                                },
                                {
                                    "id": 1,
                                    "name": "SerialNum",
                                    "type": {
                                        "type": "String"
                                    }
                                },
                                {
                                    "id": 2,
                                    "name": "AbnormalInfo",
                                    "type": {
                                        "type": "String"
                                    },
                                    "optional": true
                                },
                                {
                                    "id": 3,
                                    "name": "AssetNum",
                                    "type": {
                                        "type": "String"
                                    },
                                    "optional": true
                                },
                                {
                                    "id": 4,
                                    "name": "EquipmentName",
                                    "type": {
                                        "type": "String"
                                    },
                                    "optional": true
                                },
                                {
                                    "id": 5,
                                    "name": "EquipmentModel",
                                    "type": {
                                        "type": "String"
                                    },
                                    "optional": true
                                },
                                {
                                    "id": 6,
                                    "name": "User",
                                    "type": {
                                        "type": "String"
                                    },
                                    "optional": true
                                },
                                {
                                    "id": 7,
                                    "name": "Location",
                                    "type": {
                                        "type": "String"
                                    },
                                    "optional": true
                                },
                                {
                                    "id": 8,
                                    "name": "time",
                                    "type": {
                                        "type": "Date"
                                    }
                                }
                            ]
                        }
                    }
                }
            ]
        },
        "PtlAddData/ReqAddData": {
            "type": "Interface",
            "properties": [
                {
                    "id": 1,
                    "name": "RukuDate",
                    "type": {
                        "type": "Date"
                    },
                    "optional": true
                },
                {
                    "id": 2,
                    "name": "AssetNum",
                    "type": {
                        "type": "String"
                    },
                    "optional": true
                },
                {
                    "id": 3,
                    "name": "SerialNum",
                    "type": {
                        "type": "String"
                    }
                },
                {
                    "id": 4,
                    "name": "EquipmentName",
                    "type": {
                        "type": "String"
                    }
                },
                {
                    "id": 5,
                    "name": "EquipmentModel",
                    "type": {
                        "type": "String"
                    },
                    "optional": true
                },
                {
                    "id": 6,
                    "name": "Flag",
                    "type": {
                        "type": "Boolean"
                    }
                },
                {
                    "id": 7,
                    "name": "Custodian",
                    "type": {
                        "type": "String"
                    },
                    "optional": true
                },
                {
                    "id": 8,
                    "name": "DepartmentHead",
                    "type": {
                        "type": "String"
                    },
                    "optional": true
                },
                {
                    "id": 9,
                    "name": "User",
                    "type": {
                        "type": "String"
                    },
                    "optional": true
                },
                {
                    "id": 10,
                    "name": "AbnormalInfo",
                    "type": {
                        "type": "String"
                    },
                    "optional": true
                }
            ]
        },
        "PtlAddData/ResAddData": {
            "type": "Interface",
            "properties": [
                {
                    "id": 1,
                    "name": "insertedId",
                    "type": {
                        "type": "String"
                    }
                }
            ]
        },
        "PtlDelData/ReqDelData": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "_id",
                    "type": {
                        "type": "Reference",
                        "target": "?mongodb/ObjectId"
                    }
                }
            ]
        },
        "PtlDelData/ResDelData": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "_id",
                    "type": {
                        "type": "String"
                    }
                }
            ]
        },
        "PtlGetData/ReqGetData": {
            "type": "Interface"
        },
        "PtlGetData/ResGetData": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "data",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Interface",
                            "properties": [
                                {
                                    "id": 2,
                                    "name": "_id",
                                    "type": {
                                        "type": "String"
                                    }
                                },
                                {
                                    "id": 3,
                                    "name": "RukuDate",
                                    "type": {
                                        "type": "String"
                                    }
                                },
                                {
                                    "id": 4,
                                    "name": "AssetNum",
                                    "type": {
                                        "type": "String"
                                    }
                                },
                                {
                                    "id": 5,
                                    "name": "SerialNum",
                                    "type": {
                                        "type": "String"
                                    }
                                },
                                {
                                    "id": 6,
                                    "name": "EquipmentName",
                                    "type": {
                                        "type": "String"
                                    }
                                },
                                {
                                    "id": 7,
                                    "name": "EquipmentModel",
                                    "type": {
                                        "type": "String"
                                    }
                                },
                                {
                                    "id": 8,
                                    "name": "Flag",
                                    "type": {
                                        "type": "Boolean"
                                    }
                                },
                                {
                                    "id": 9,
                                    "name": "Custodian",
                                    "type": {
                                        "type": "String"
                                    }
                                },
                                {
                                    "id": 10,
                                    "name": "DepartmentHead",
                                    "type": {
                                        "type": "String"
                                    }
                                }
                            ]
                        }
                    }
                }
            ]
        },
        "PtlGetOneData/ReqGetOneData": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "ScanNum",
                    "type": {
                        "type": "String"
                    }
                }
            ]
        },
        "PtlGetOneData/ResGetOneData": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "data",
                    "type": {
                        "type": "Interface",
                        "properties": [
                            {
                                "id": 5,
                                "name": "AssetNum",
                                "type": {
                                    "type": "String"
                                }
                            },
                            {
                                "id": 4,
                                "name": "SerialNum",
                                "type": {
                                    "type": "String"
                                }
                            },
                            {
                                "id": 6,
                                "name": "EquipmentName",
                                "type": {
                                    "type": "String"
                                }
                            },
                            {
                                "id": 8,
                                "name": "EquipmentModel",
                                "type": {
                                    "type": "String"
                                },
                                "optional": true
                            },
                            {
                                "id": 7,
                                "name": "AbnormalInfo",
                                "type": {
                                    "type": "String"
                                },
                                "optional": true
                            },
                            {
                                "id": 2,
                                "name": "Flag",
                                "type": {
                                    "type": "Boolean"
                                }
                            }
                        ]
                    }
                }
            ]
        }
    }
};